package com.xquant.marketdata.marketdata.service.impl;

import com.github.pagehelper.PageInfo;
import com.xquant.marketdata.marketdata.mapper.FundMapper;
import com.xquant.marketdata.marketdata.service.FundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Auther: B946
 * @Date: 23/12/2019 10:17
 * @Description:
 */
@Service
public class FundServiceImpl implements FundService {


    @Autowired
    private FundMapper fundMapper;

    @Override
    public PageInfo<Map>  queryFundInfoByPage(Map<String,Object> params){
        List<Map>   list = fundMapper.queryFundInfoByPage(params);
        return new PageInfo<Map>(list);
    }
    @Override
    public PageInfo<Map>  queryFundDividendByPage(Map<String,Object> params){
        //PageHelper.startPage(1, 10);
        List<Map>   list = fundMapper.queryFundDividendByPage(params);
        PageInfo pageInfo = new PageInfo(list);

        return new PageInfo<Map>(list);
    }
    @Override
    public PageInfo<Map>  queryFundPriceByPage(Map<String,Object> params){
        List<Map>   list = fundMapper.queryFundPriceByPage(params);
        return new PageInfo<Map>(list);
    }


}
